From: Jan Beulich Date: Fri, 17 May 2019 15:32:20 +0000 (+0200) Subject: x86: cover for clang's lack of support of -mpreferred-stack-boundary= X-Git-Tag: archive/raspbian/4.14.0+80-gd101b417b7-1+rpi1^2~63^2~2217 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https://%22%22/%22http:/www.example.com/cgi/%22https:/%22%22?a=commitdiff_plain;h=76d8dd2705a091078c871dff2024953749606dd0;p=xen.git x86: cover for clang's lack of support of -mpreferred-stack-boundary= While clang supposedly supports -mstack-alignment= instead, I'm not using that alternative here due to being uncertain whether that's indeed an exact equivalent of the gcc option. Only make use of the option entirely conditional for now. Reported-by: Andrew Cooper Signed-off-by: Jan Beulich Acked-by: Andrew Cooper --- diff --git a/xen/arch/x86/efi/Makefile b/xen/arch/x86/efi/Makefile index f223ef058e..4bc0a196e9 100644 --- a/xen/arch/x86/efi/Makefile +++ b/xen/arch/x86/efi/Makefile @@ -7,7 +7,8 @@ boot.init.o: buildid.o EFIOBJ := boot.init.o compat.o runtime.o -$(EFIOBJ): CFLAGS-stack-boundary := -mpreferred-stack-boundary=4 +$(call cc-option-add,cflags-stack-boundary,CC,-mpreferred-stack-boundary=4) +$(EFIOBJ): CFLAGS-stack-boundary := $(cflags-stack-boundary) obj-y := stub.o obj-$(XEN_BUILD_EFI) := $(EFIOBJ) relocs-dummy.o